<div class="form-group">
    <label for="tag" class="col-md-3 control-label">文章分类名称</label>
    <div class="col-md-5">
        <input type="text" class="form-control" name="name" id="category" value="{{ $name }}" autofocus>
    </div>
</div>
<input type="hidden" class="form-control" name="id" id="category" value="{{ $id }}" autofocus>
@if($pid)
    <div class="form-group">
        <label for="tag" class="col-md-3 control-label">上级分类</label>
        <div class="col-md-5">
            @inject('categoryPresenter', 'App\Models\Admin\Category')
            {!! $categoryPresenter->getCateSelect($pid) !!}
        </div>
    </div>
@endif
